/**
 * 作者信息类，包含作者的基本信息
 */
public class Author {
    // 姓名
    private String name;
    // 身份
    private String position;
    // 公司
    private String company;
    // 国籍
    private String nationality;

    // 无参构造函数
    public Author() {}

    // 全参构造函数
    public Author(String name, String position, String company, String nationality) {
        this.name = name;
        this.position = position;
        this.company = company;
        this.nationality = nationality;
    }

    // Getter和Setter方法
    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPosition() {
        return position;
    }

    public void setPosition(String position) {
        this.position = position;
    }

    public String getCompany() {
        return company;
    }

    public void setCompany(String company) {
        this.company = company;
    }

    public String getNationality() {
        return nationality;
    }

    public void setNationality(String nationality) {
        this.nationality = nationality;
    }

    @Override
    public String toString() {
        return "Author{" +
                "name='" + name + '\'' +
                ", position='" + position + '\'' +
                ", company='" + company + '\'' +
                ", nationality='" + nationality + '\'' +
                '}';
    }
}